/*
 * @Author: Yuchen Wang
 * @Date: 2025-05-18 22:53:54
 * @LastEditors: Yuchen Wang
 * @LastEditTime: 2025-05-19 02:17:59
 * @FilePath: /react-pixel-progress/.storybook/vite.config.ts
 * @Description:
 * Copyright (c) 2025 by Longzai Tech, All Rights Reserved.
 */

import tailwindcssPostCSS from '@tailwindcss/postcss';
import react from '@vitejs/plugin-react-swc';
import { UserConfigExport } from 'vite';
import { defineConfig } from 'vitest/config';

const app = async (): Promise<UserConfigExport> => {
  return defineConfig({
    plugins: [react()],
    css: {
      postcss: {
        plugins: [tailwindcssPostCSS],
      },
    },
  });
};
// https://vitejs.dev/config/
export default app;
